-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update lint rules and correct import statements in unit tests (#11)
* initial check-in of working version. * add file containing dependencies to install * first draft * added more lint rules. cleaned up table format. * updated lint rules * Removed references from the bottom of the page * Move process impl into the base class FileProcessor. * use file_extension as key to look up the right FileWriter class * add newline * add command line arg processing * corrected file extensions lookup table * move FileReader responsibility out of the FileProcessor * expose FileReader and message linter * modify FileProcessor to accept FileReader and FileWriter * use updated FileProcessor * add more command line usages * rename to message_lint (from str_res_lint) * update README to reflect the renaming to message_lint (from str_res_lint) * remove static method (build_output_folder) from FileWriter * add test files * Create .gitignore * don't include __pycache__ * reorganize table * change --dest option to --output_folder * clean up table. remove need for --file option. rename --dest option to `output_folder` * correct to NullFileReader * fix indentation issue * add unit tests for filereader and filewriter. * remove commented code * add examples to hear reader learn how to use message_lint * correct / clean up some of the rules * add overview diagram * Update README.md (#7) add diagram * updated diagram. minor clean up * Isolate version number. Also, add logging * updated rules. check for empty message resources. * correct rule for empty messages * add "Getting Started" section add table of issues the tool will find and how to resolve each issue * update diagram * update diagram * update diagram * remove use of "bins" * minor edits * move main function out of bin/message_lint and put it in its own folder. that way, it can be unit tested. * move main function out of bin/message_lint and put it in its own folder. that way, it can be unit tested. * add placeholder for unit test * update diagram adding mention of product source content * add two simple test (source content) files * clarify mention of supporting plural noun forms * commented out debug print statements. Will remove them at some point. * commented out debug print statements. Will remove them at some point. * commented out debug print statements. Will remove them at some point. * update diagram. * update diagram. put dotted box around the source content files. * add mention of regex * move fileprocessor under message_lint app folder * remove self.bins. no longer used. * move fileprocessor out of utils to the app folder * add type hint * add newline at end of file * move linter to app folder * move linter to app folder * add command line option "verbose" * add newline at end of file * move linter to app folder * update test files with improved example messages with L12y issues * add logger * remove print statements * update version * correct grammar * refactor build_file_path. rename to derive_output_target. make the output folder as needed before the output file is written to. * refactor derive_output_target, make it generic * light refactoring. use dict constructor. * customize output_target folder/file * call customize_output_target * update patch number to "2" * restore mistakenly deleted "()" * remove debug print. remove unused data member. * add newline to end of file * remove extra lines from end of file * update import statements * update rules * update message that tell users where the report got saved * update test files (json / properties)
- Loading branch information
Showing
8 changed files
with
48 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import unittest | ||
import filereader as fr | ||
import utils.filereader as fr | ||
|
||
|
||
class FileReaderTest(unittest.TestCase): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import unittest | ||
import filewriter as fw | ||
import utils.filewriter as fw | ||
|
||
|
||
class FileWriterTest(unittest.TestCase): | ||
|